package com.gsq.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@TableName("sys_menu")
@Data
@Accessors(chain = true)
public class Sys_menu extends BasePojo{
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer parentId;
    private String menuNote;
    private String menuUrl;
    private Integer menuLevel;
    private Integer sortNum;
    private String permission;

    @TableField(exist = false)
    private List<Sys_menu> children;


}
